package com.yxr.affairs.api;

import android.content.Context;
import android.text.TextUtils;

import com.yxr.affairs.utils.SPUtils;

public class Constans1 {


 //   static String CONSTANS_SERVER = "/soap/IHyWebServer";

    public static String CONSTANS_WAP = "http://60.173.121.200:2222" ;

    /**
     *    http://192.168.44.209:8050
     * @param mContext
     * @return
     */
    public static String getData(Context mContext) {
        String url = CONSTANS_WAP;//默认的url
        if (SPUtils.getInstance(mContext).contains("mdata")) {
            if (!TextUtils.isEmpty(SPUtils.getInstance(mContext).getString("mdata"))) {
                url = "http://"+SPUtils.getInstance(mContext).getString("mdata");//假如有新的，赋值新的url
            }
        }
        return url;//返回处理后的url
    }

}
